package com.cgq.pro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgq.base.service.impl.BaseServiceImpl;
import com.cgq.pro.dao.CityDao;
import com.cgq.pro.entity.CityStatistics;
import com.cgq.pro.entity.LandForm;
import com.cgq.pro.service.CityService;

@Service
public class CityServiceImpl extends BaseServiceImpl<CityStatistics> implements CityService {
	private CityDao cityDao;

	@Autowired
	public void setCityDao(CityDao cityDao) {
		this.cityDao = cityDao;
		this.baseDao=cityDao;
	}

	public List<CityStatistics> getAllRecords(int start, int pageSize,
			Map<String, String> map) {
		return cityDao.getAllRecords(start, pageSize, map);
	}

	public int getTotal(Map<String, String> map) {
		return cityDao.getTotal(map);
	}

	public List getStatisticsData() {
		return cityDao.getStatisticsData();
	}

	public List<CityStatistics> getAllRecords(LandForm landForm) {
		return cityDao.getAllRecords(landForm);
	}
}
